#coding:utf-8
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
import os
import heartbeat
import helloworld
from django.conf import settings
from django.views.static import serve
urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^index/', include('helloworld.urls')), 
    url(r'^$', helloworld.views.index),
    url(r'^myblog/', include('myblog.urls')),
    url(r'^heartbeat/', include('heartbeat.urls')),
    url(r'^site_media/(?P<path>.*)$', serve, {'document_root': os.path.join(os.path.dirname(__file__), 'static/').replace('\\','/'),}),
    url(r'^ckeditor/', include('ckeditor_uploader.urls')),
]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)